<template>
  <view class="content">
    <view class="components-title">
      <view class="components-title-t">gg-picker-time</view>
      <view class="components-title-d">时间选择</view>
    </view>
    <gg-nav-group>
      <gg-picker-time label="时间选择" v-model="formData.time" />
    </gg-nav-group>
    <gg-nav-group label="有默认时间">
      <gg-picker-time label="时间选择" v-model="formData.time2" />
    </gg-nav-group>
    <gg-nav-group label="限制开始时间">
      <gg-picker-time label="时间选择" v-model="formData.time" startTime="09:30" />
    </gg-nav-group>
    <gg-nav-group label="限制结束时间">
      <gg-picker-time label="时间选择" v-model="formData.time" endTime="18:30" />
    </gg-nav-group>
  </view>
</template>

<script>
export default {
  data() {
    return {
      formData: {
        time: '',
        time2: '12:59',
      },
    };
  },
  onLoad() { },
  methods: {
    bindTimeChange(e) {

    },
    clickTest(e) {
      console.log(this.formData.time)
    }
  }
}
</script>

<style>
page {
  background: #f1f1f1;
}
</style>
